package com.example.userdemo.model;

import java.util.Date;

public class User {
    private Long id;
    private String name;
    private Integer age;
    private String occupation;
    private Date birthday;
    private String gender;

    // 无参构造函数
    public User() {}

    // 有参构造函数
    public User(String name, Integer age, String occupation, Date birthday, String gender) {
        this.name = name;
        this.age = age;
        this.occupation = occupation;
        this.birthday = birthday;
        this.gender = gender;
    }

    // Getters 和 Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
